//
//  FPWebDownView.m
//  FilmParadise
//
//  Created by lanou3g on 15/7/21.
//  Copyright (c) 2015年 DLYgroup. All rights reserved.
//

#import "FPWebDownView.h"

@implementation FPWebDownView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.button = [UIButton buttonWithType:UIButtonTypeSystem];
        self.button.frame = CGRectMake(kImageW(10), kImageW(10), kImageW(30), kImageW(30));
        [self.button setImage:[UIImage imageNamed:@"speech-bubble-vector"] forState:UIControlStateNormal];
        [self addSubview:_button];
        
        self.messagelabel = [[UILabel alloc]initWithFrame:CGRectMake(kImageW(20), kImageH(5), kImageW(20), kImageW(20))];
        self.messagelabel.layer.cornerRadius = kImageW(20)/2;
        self.messagelabel.layer.masksToBounds = YES;
        self.messagelabel.font = [UIFont systemFontOfSize:11];
        self.messagelabel.textAlignment = NSTextAlignmentCenter;
        self.messagelabel.backgroundColor = [UIColor redColor];
        [self addSubview:_messagelabel];
        
        self.releationButton = [[UIButton alloc]initWithFrame:CGRectMake(kScreenWidth - kImageW(150) - 2 *kImageW(10), kImageH(5), kImageW(150), kImageH(40))];
       self.releationButton.backgroundColor = [UIColor whiteColor];

        [self.releationButton.layer setCornerRadius:20];
        self.releationButton.layer.masksToBounds  = YES;
            [self.releationButton setTitle:@"相关电影/影人" forState:UIControlStateNormal];
        [self.releationButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        [self addSubview:_releationButton];
    }
    return self;
}

@end
